package com.mer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mer.entity.Teacher;
import com.mer.mapper.OrderTeacherMapper;
import com.mer.service.OrderTeacherService;
import com.mer.vo.CommonResult;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @program: IIPhase-project
 * @description: 教师实现类
 * @author: 张庆恒
 * @create: 2021-10-22 20:21
 **/
@Service
public class OrderOrderTeacherServiceImpl extends ServiceImpl<OrderTeacherMapper, Teacher> implements OrderTeacherService {
    @Resource
    private OrderTeacherMapper orderTeacherMapper;

    @Override
    public CommonResult queryTeacherByTeacherName(String teacherName) {
        Teacher teacher = orderTeacherMapper.queryTeacherByTeacherName(teacherName);
        return new CommonResult(2000, "查询成功", teacher);
    }
}
